package com.sinosoft.cnmuseum.dao;


import java.util.HashMap;
import java.util.List;

import com.sinosoft.cnmuseum.entity.MbMusicWhsx;
import com.sinosoft.cnmuseum.entity.MbMusicYxxx;
import com.sinosoft.commontools.record.Record;
import com.sinosoft.dbtools.operate.single.DBSingleTableActorMgr;


public class MbMusicWhsxDao extends BaseDao{

	public MbMusicWhsxDao() {
		this.actor = DBSingleTableActorMgr.getDBSingleTableActor("Mb_music_whsx");
	}
	

	public List<Record> getDataByGcxxid(int gcxxid){
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put(MbMusicWhsx.GCXXID, gcxxid);
		List<Record> list = this.getListByProperty(map);
		if(list!=null&&list.size()>0){
			return list;
		}
		return null;
	}

	
	public Record getDatazByGcxxid(int gcxxid){
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put(MbMusicWhsx.GCXXID, gcxxid);
		List<Record> list = this.getListByProperty(map);
		if(list!=null&&list.size()>0){
			Record r = list.get(0);
			return r;
		}
		return null;
	}
	
	
	
}
